drm/vc4: plane: TPZ scaling modes cannot reduce lbm size when alpha-less #7164
Merged
pelwell merged 2 commits intoraspberrypi:rpi-6.12.yfrom Dec 4, 2025
Merged
drm/vc4: plane: TPZ scaling modes cannot reduce lbm size when alpha-less #7164pelwell merged 2 commits intoraspberrypi:rpi-6.12.yfrom
pelwell merged 2 commits intoraspberrypi:rpi-6.12.yfrom
Conversation
This code can never do anything, as channels_scaled can only be 0 or 2. I suspect that the index was intended to be i rather than channel, but that would trigger for scaled RGB planes, and halving lines is not wanted there. Just remove it. Signed-off-by: Dom Cobley <popcornmix@gmail.com>
6by9
approved these changes
Dec 3, 2025
Contributor
6by9
left a comment
There was a problem hiding this comment.
Nit pick over the comment, but I'm happy with this change.
Nasty that they tucked the comment about there not being a non-alpha TPZ mode into one of the examples :-(
|
|
||
| if (info->has_alpha) | ||
| // spec says "Note that there is not an extra mode to save memory | ||
| // for alpha-less formats" in the TPZ section |
Contributor
There was a problem hiding this comment.
The commit text is sufficient via git blame, so no need for this comment that checkpatch complain had about the length of, and is now a multi-line using // (should be /* */).
spec says "Note that there is not an extra mode to save memory for alpha-less formats" in the TPZ section. Currently, if first plane is RGB888 and scaled down (TPZ) a second plane will corrupt the LBM and result in garbage I've also folded in the modification to components to the function as it seems misplaced Signed-off-by: Dom Cobley <popcornmix@gmail.com>
Collaborator
Author
Indeed. It was well hidden away. Removed the comment. |
Collaborator
Author
|
@pelwell any objection? |
Contributor
|
None from me - when I looked yesterday the auto-builds were still active. I wish GitHub had a "Merge when it passes" button. |
popcornmix
added a commit
to raspberrypi/firmware
that referenced
this pull request
Dec 8, 2025
kernel: media: i2c: imx477: Correct IMX477_REG_TEST_PATTERN to be 16bit See: raspberrypi/linux#7162 kernel: dtoverlay for Ilitek 23XX, 25XX, and 213X touch controllers See: raspberrypi/linux#7146 kernel: drm/vc4: plane: TPZ scaling modes cannot reduce lbm size when alpha-less See: raspberrypi/linux#7164
popcornmix
added a commit
to raspberrypi/rpi-firmware
that referenced
this pull request
Dec 8, 2025
kernel: media: i2c: imx477: Correct IMX477_REG_TEST_PATTERN to be 16bit See: raspberrypi/linux#7162 kernel: dtoverlay for Ilitek 23XX, 25XX, and 213X touch controllers See: raspberrypi/linux#7146 kernel: drm/vc4: plane: TPZ scaling modes cannot reduce lbm size when alpha-less See: raspberrypi/linux#7164
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Spec says "Note that there is not an extra mode to save memory for alpha-less formats" in the TPZ section.
Curently, if first plane is RGB888 and scaled down (TPZ) a second plane will corrupt the LBM and result in garbage
I've also folded in the modification to components to the function as it seems misplaced